<#assign ctx="${bw.contextPath}">
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>事件上报</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/plugins/iconfont/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/css/animate.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/plugins/mui/css/mui.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/plugins/mui/css/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/css/global.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/css/eventReporting.css" />
</head>

<body>
<div id="app">
    <!--<header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">事件上报</h1>
        <a class="mui-action-menu mui-pull-right header-right-link" @click="send">发送</a>
    </header>-->
    <div class="mui-content wrap eventReporting-add-box">
        <!--主体列表 -s-->
        <div class="content-box">
            <ul class="mui-table-view">
                <li class="mui-table-view-cell detail-list">
                    <div class="mui-row">
                        <p class="mui-col-xs-3 label">时间：</p><!---->
                        <p class="mui-col-xs-9 value" v-text="dateTime" @click="choseTime"></p>
                    </div>
                </li>
                <li class="mui-table-view-cell detail-list">
                    <div class="mui-row">
                        <p class="mui-col-xs-3 label">地点：</p>

                        <p class="mui-col-xs-9 value" >
                            <input type="text" name="" id="" placeholder="请输入事件地点" :value="locations" v-model="locations" :disabled="pid?false:true"/>
                        </p>

                    </div>
                </li>
                <!--<li class="mui-table-view-cell detail-list">
                    <div class="mui-row">
                        <p class="mui-col-xs-3 label">发起人：</p>
                        <p class="mui-col-xs-9 value">丁炜</p>

                    </div>
                </li>-->
                <li class="mui-table-view-cell detail-list" v-if="!isPublic">
                    <div class="">
                        <a href="javascript:;" class="mui-row mui-navigate-right special" @click="showPeople">
                        <p class="mui-col-xs-3 label">@的人：</p>
                        <p class="mui-col-xs-9 value mui-ellipsis" v-if="chosePeoples.length>0">
                            <template v-for="(name,index) in chosePeoples">
                                <template v-if="index=='0'">{{name.name}}</template>
                                <template v-else="">、{{name.name}}</template>
                            </template>

                        </p>
                        <p class="mui-col-xs-9 value" v-else></p>

                        </a>

                    </div>
                </li>
                <li class="mui-table-view-cell detail-list">
                    <div class="mui-row">
                        <p class="mui-col-xs-3 label">描述：</p>
                        <p class="mui-col-xs-9 value">
                            <textarea name="" id="" class="remark" placeholder="备注内容" :value="content" v-model="content"></textarea>
                        </p>
                    </div>
                </li>
                <li class="mui-table-view-cell detail-list">
                    <div class="mui-row">
                        <div class="mui-col-xs-4 mui-col-sm-3 imgListBox" v-for="(img,index) in imgList" v-cloak>
                            <a href="javascript:;" class="remove" @click="removeImg(index)"></a>
                            <img :src="img.src" style="max-width: 100%;" data-preview-src="" data-preview-group="1"/>
                        </div>
                        <div class="mui-col-xs-4 mui-col-sm-3 imgListBox">
                            <a href="javascript:;" class="addBtn">
                                <input type="file" name="file_head" accept="image/*" id="file_head" @change="upload" />
                            </a>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <button type="button" class="submit-btn" @click="send" data-loading-icon=''>发送</button>
        <!--主体列表 -e-->
    </div>
    <div id="chosePeople" class="animated fadeInUp">
        <div class="mui-scroll-wrapper">
            <div class="mui-scroll">
                <ul class="mui-table-view">
                    <li class="mui-table-view-cell mui-checkbox mui-left" v-for="p in peoples" @click="chosed">
                    <input name="people" type="checkbox" :data-id="p.userid" :data-name="p.name" >
                    {{p.name}}
                    </li>
                </ul>
            </div>
            <a href="javacript:;" class="confirm-people">确认</a>
        </div>

    </div>
    <div class="showImgInfo">
        <p class="address" v-text="locations"></p>
        <p class="date" v-text="dateTime"></p>
    </div>
</div>
<script src="${ctx}/resources/assets/plugins/jquery-1.11.3.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="${ctx}/resources/assets/plugins/mui/js/mui.min.js"></script>
<script src="${ctx}/resources/assets/plugins/mui/js/mui.zoom.js"></script>
<script src="${ctx}/resources/assets/plugins/mui/js/mui.previewimage.js"></script>
<script src="${ctx}/resources/assets/plugins/vue.min.js"></script>
<script src="${ctx}/resources/assets/plugins/mui/js/mui.picker.min.js"></script>
<script src="${ctx}/resources/assets/plugins/localResizeIMG/dist/lrz.bundle.js"></script>
<script src="${ctx}/resources/assets/js/global.js"></script>
<script src="${ctx}/resources/assets/js/eventReporting-add.js?random=8"></script>
</body>
</html>